function SuperType(){
  this.property=true;
}

SuperType.prototype.getSuperValue=function(){
  return this.property;
}

function SubType(){
  this.subProperty=false
}

SubType.prototype=new SuperType();

SubType.prototype.getSubTypeValue=function(){
  return this.subProperty;
}

const instance =new SubType();


console.log(instance.getSuperValue())